define(function (require) {
    var _common = require('common/main');
    var _config = require('common/config');
    var _send = _common.sendRequest;
    function init() {
    	var _param = {};
    	_send("food/listSpecial.ajax",_param,_list_food_render);
    	
    }
    function _list_food_render(data)
    {
    	var _html = '';
    	var _len = data.length;
    	for (var i = 0; i < _len; i++) 
    	{
			var _item = data[i];
			_html += '<tr>';
			_html += '<td width="20%">';
			_html += _item.fooddate;
			_html += '</td>';
			
			_html += '<td width="20%">';
			_html += _item.foodname;
			_html += '</td>';
			
			_html += '<td width="20%">';
			_html += _item.singlemarginStr;
			_html += '</td>';
			
			_html += '<td width="20%">';
			_html += _item.combomarginStr;
			_html += '</td>';
			
			_html += '<td width="20%">';
			_html += '<a href="javascript:_food_special_mod(';
			_html += _item.id;
			_html += ');">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;';
			
			_html += '<a href="javascript:_food_special_del(';
			_html += _item.id;
			_html += ');">删除</a>';
			_html += '</td>';
			_html += '</tr>'
    	}
    	$('#food_special_list').html(_html);
    }
    
    return { init: init };
});